/*
 * Filename: g:\espidf_workspace\idf_S3_T-Watch\main\sources\rtctime.h
 * Path: g:\espidf_workspace\idf_S3_T-Watch\main\sources
 * Created Date: Thursday, June 19th 2025, 4:33:21 pm
 * Author: sss
 * 
 * Copyright (c) 2025 Your Company
 */
#ifndef RTC_TIME_H_
#define RTC_TIME_H_

#include <time.h>
#include "driver/i2c_master.h"

#ifdef __cplusplus
extern "C" {
#endif

void rtc_init(i2c_master_bus_handle_t bus);
void rtc_set_time(time_t t);
time_t rtc_get_time(void);

void set_sys_time(tm* timeinfo);

#ifdef __cplusplus
}
#endif

#endif /* RTC_TIME_H_ */